package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/***
 * @author 飞哥yykk
 * 更多学习关注飞哥B站
 * 地址是：https://space.bilibili.com/490711252
 * @description: 产品模块
 * @date 2021/8/30 21:08
 * @return
 * @throws
 */
@TableName("kss_product")
public class Product implements java.io.Serializable {

    // 产品ID
    @TableId(type = IdType.ID_WORKER)
    private Long productId;
    // 产品标题
    private String productTitle;
    // 产品描述
    private String productDesc;
    // 产品价格
    private BigDecimal productPrice;
    // 产品的封面
    private String productImg;
    // 产品的状态 0 未发布 1发布
    private String status;
    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    // 创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    // 产品的完整信息
    private String productInfo;
    // 产品标签
    private String tags;
    // 产品图集
    private String thumnimgs;
    // 产品地址
    private String address;
    // 产品的纬度
    private String latitude;
    // 产品的经度
    private String longitude;
    // 添加用户
    private Long userId;
    // 添加用户名
    private String username;
    // 添加用户的头像
    private String avatar;
    // 展示价格
    private String price;
    // 产品浏览数
    private Integer viewcount;
    // 产品的收藏数
    private Integer favcount;
    // 是否首页 0 否 1是
    private Integer isindex;
    // 产品一级分类
    private Long categoryPid;
    // 产品二级分类
    private Long categoryCid;
    // 产品的一级分类标题
    private String categoryPtitle;
    // 产品的二级分类标题
    private String categoryCtitle;
    // 查询对应的门票
    @TableField(exist = false)
    private List<Ticket> ticketList;
    // 查询对应的露营
    @TableField(exist = false)
    private List<Ticket> ticketCamping;


    public Product() {
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductTitle() {
        return productTitle;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(String productInfo) {
        this.productInfo = productInfo;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getThumnimgs() {
        return thumnimgs;
    }

    public void setThumnimgs(String thumnimgs) {
        this.thumnimgs = thumnimgs;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getViewcount() {
        return viewcount;
    }

    public void setViewcount(Integer viewcount) {
        this.viewcount = viewcount;
    }

    public Integer getFavcount() {
        return favcount;
    }

    public void setFavcount(Integer favcount) {
        this.favcount = favcount;
    }

    public Integer getIsindex() {
        return isindex;
    }

    public void setIsindex(Integer isindex) {
        this.isindex = isindex;
    }

    public Long getCategoryPid() {
        return categoryPid;
    }

    public void setCategoryPid(Long categoryPid) {
        this.categoryPid = categoryPid;
    }

    public Long getCategoryCid() {
        return categoryCid;
    }

    public void setCategoryCid(Long categoryCid) {
        this.categoryCid = categoryCid;
    }

    public String getCategoryPtitle() {
        return categoryPtitle;
    }

    public void setCategoryPtitle(String categoryPtitle) {
        this.categoryPtitle = categoryPtitle;
    }

    public String getCategoryCtitle() {
        return categoryCtitle;
    }

    public void setCategoryCtitle(String categoryCtitle) {
        this.categoryCtitle = categoryCtitle;
    }

    public List<Ticket> getTicketList() {
        return ticketList;
    }

    public void setTicketList(List<Ticket> ticketList) {
        this.ticketList = ticketList;
    }

    public List<Ticket> getTicketCamping() {
        return ticketCamping;
    }

    public void setTicketCamping(List<Ticket> ticketCamping) {
        this.ticketCamping = ticketCamping;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", productTitle='" + productTitle + '\'' +
                ", productDesc='" + productDesc + '\'' +
                ", productPrice=" + productPrice +
                ", productImg='" + productImg + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", productInfo='" + productInfo + '\'' +
                ", tags='" + tags + '\'' +
                ", thumnimgs='" + thumnimgs + '\'' +
                ", address='" + address + '\'' +
                ", latitude='" + latitude + '\'' +
                ", longitude='" + longitude + '\'' +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                ", price='" + price + '\'' +
                ", viewcount=" + viewcount +
                ", favcount=" + favcount +
                ", isindex=" + isindex +
                ", categoryPid=" + categoryPid +
                ", categoryCid=" + categoryCid +
                ", categoryPtitle='" + categoryPtitle + '\'' +
                ", categoryCtitle='" + categoryCtitle + '\'' +
                ", ticketList=" + ticketList +
                ", ticketCamping=" + ticketCamping +
                '}';
    }
}
